package com.iris.egrant.service;

import com.iris.egrant.mapper.EmpMapper;
import com.iris.egrant.pojo.Emp;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author zhoukun
 * @since 2021-05-18
 */
@Service
@RequiredArgsConstructor
public class EmpServiceImpl implements IEmpService{
    private final EmpMapper empMapper;


    @Override
    public Emp getEmpById(Integer id) {
        return empMapper.selectByPrimaryKey(id);
    }
}
